﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    x:Class="JuCloudy.Sys.App.ErrorManagement.MainPage"
    xmlns:UserControls="clr-namespace:JuCloudy.Platform.UserControls;assembly=JuCloudy.Platform.UserControls"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    mc:Ignorable="d"
    d:DesignHeight="500" d:DesignWidth="1000">

    <Grid x:Name="LayoutRoot" Background="White">
        <ScrollViewer  Margin="0,64,0,0" BorderBrush="{x:Null}" BorderThickness="0" Padding="0" >
            <sdk:DataGrid x:Name="_dg" BorderBrush="{x:Null}" BorderThickness="0" AutoGenerateColumns="False">
                <sdk:DataGrid.Columns>
                    <sdk:DataGridTextColumn  Header="Id" Binding="{Binding ErrorId}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="错误描述" Binding="{Binding ErrorMsg}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="上报者"  Binding="{Binding ReporterId}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="上报者IP" Binding="{Binding ReporterIpAddress}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    <sdk:DataGridTextColumn  Header="上报时间" Binding="{Binding ReportDateTime}" IsReadOnly="True" MaxWidth="Infinity" MinWidth="0"  Visibility="Visible" Width="Auto"/>
                    </sdk:DataGrid.Columns>
            </sdk:DataGrid>
        </ScrollViewer>
        <Grid VerticalAlignment="Top" Height="64" Background="#FFF7F8FA">
            <Rectangle VerticalAlignment="Bottom" Height="1" Fill="#FFDBE7EF"/>

            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0">
                <UserControls:jButton x:Name="_ViewDetailBtn" Content="查看错误详情" IsEnabled="False" Width="120" Height="34" Margin="0,0,15,0" FontSize="14"/>
                <UserControls:jButton x:Name="_ViewBrowserInfoBtn" Content="查看浏览器信息" Width="120" Height="34" Margin="0,0,15,0" FontSize="14" IsEnabled="False"/>
                <UserControls:jButton x:Name="_ViewUserAgent" Content="查看UserAgent" Width="120" Height="34" Margin="0,0,15,0" FontSize="14" BorderBrush="#FFD61B09" IsEnabled="False"/>
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>
